package cn.amos.gateway.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * PROJECT: ws-gateway
 * DESCRIPTION: test
 *
 * @author amos.wang
 * @date 2019/4/11
 */
@Controller
@RequestMapping
public class HelloController {

    @RequestMapping("hello")
    @ResponseBody
    public String hello() {
        return "Hello World!";
    }

    @RequestMapping("/")
    public String html() {
        return "HelloWorld";
    }
}
